#ifndef WIDGETVARIANTBUTTON_H
#define WIDGETVARIANTBUTTON_H

#include <DefineLibUiQt.h>
#include <QtWidgets/QWidget>
#include <WidgetVariant.h>
#include <EItemMetaFunction.h>
namespace Ui {
class WidgetVariantButton;
}

class LIB_UI_QT_DLL WidgetVariantButton : public WidgetVariant
{
    Q_OBJECT

public:
    explicit WidgetVariantButton(QWidget *parent = nullptr);
	virtual ~WidgetVariantButton();
	
    virtual void refreshByProperty(EItemMetaPropertyPtr p);
    void refreshByFunction(EItemMetaFunctionPtr p);
    virtual void buildConnect();
    virtual void clearConnect();


public slots:
	void slotButtonClicked(bool clicked);

signals:
	// void singalTriggerCommand(QJsonObject m_jsonObj, const QString& cmdStr);

private:
    Ui::WidgetVariantButton *ui;
    EItemMetaFunctionPtr m_funPtr;

	
};

#endif // WIDGETVARIANTBUTTON_H
